package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备报警类型表 实体
 * </p>
 *
 * @author 黄露
 * @since 2020-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceAlarmType对象", description = "设备报警类型表")
public class DeviceAlarmType extends Model<DeviceAlarmType> {

    private static final long serialVersionUID = 1L;

    // "自增id")
    @TableId(value = "alarm_type_id", type = IdType.AUTO)
    private Integer alarmTypeId;

    // "设备类型")
   // private String deviceType;
    // "设备标签")
    private String deviceDigest;

    // "报警名称")
    private String alarmTypeName;

    // "生效单盘类型")
    private String diskEffect;

    // "报警编码，唯一")
    private String alarmTypeCode;

    // "报警级别，多个等级，逗号分隔")
    private String alarmLevelCode;

    // "可能原因")
    private String possibleCause;

    // "处理方法")
    private String processMethod;

    // "排序顺序")
    private Integer orderAsc;

    // "是否启用")
    private Boolean enabled;

    // "备注")
    private String remark;

    // "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    // "创建人")
    private String createBy;

    @Override
    public Serializable pkVal() {
        return this.alarmTypeId;
    }

}
